package com.xiaohong.user;

import entity.IdWorker;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;

/**
 * @author xiaohong
 * @Description
 * @date 20./20 0020 13:57
 */

@SpringBootApplication
@EnableEurekaClient
@MapperScan("com.xiaohong.user.dao")
@EnableFeignClients(basePackages = {"com.xiaohong.file.feign"})
public class UserApplication {
    public static void main(String[] args) {
        SpringApplication.run(UserApplication.class,args);
    }

    @Bean
    public IdWorker createIdWorker(){
        return new IdWorker(1,1);
    }
}
